/*
 * @Author: lokei
 * @Date: 2022-09-08 15:46:41
 * @LastEditors: lokei
 * @LastEditTime: 2022-09-08 17:54:19
 * @Description: 
 */
package cn.lokei.coap.entity;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;

@Data
public class Packet {
    private int Var;
    private int T;
    private int TKL;
    private int Code;
    private int MessageID;
    private String token;
    private List<Option> options;

    public Packet() {
        this.options = new ArrayList<Option>();
    }

    public void addOption(Option option) {
        this.options.add(option);
    }
}
